<template>
	<view class="page-con pd10">
		<view class="cardview bgwhite pd fl-rsb" v-for="(item, index) in carList" :key="index">
			<text>{{item.no}}</text>
			<uni-icons type="more-filled" color="#333" size="16" @click="onHandleMore(item.no)"></uni-icons>
		</view>
		<view class="float-area fl-cc">
			<view class="" style="width: 90%;">
				<view class="btn btn-green fl" plain @click="onAddCar">
						<view class="pdr10"><uni-icons type="plus-filled" size="18" color="#FFFFFF"></uni-icons></view>
						<text>新增车辆</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		ref,
		computed,
		onMounted,
		reactive,
		nextTick
	} from 'vue';
	import {
		onLoad,
		onShow
	} from '@dcloudio/uni-app';
	import router from "@/ya/router/index.js";
	const carList = [{
		no: "陕A5023"
	}]
	onLoad(async (query) => {
		uni.setNavigationBarTitle({
			title: "我的车辆"
		})
	});
	const onHandleMore =(no)=>{
		uni.showActionSheet({
			itemList: [no, '删除'],
			success(res) {
			}
		});
	};
	const onAddCar = ()=>{
		router.go(`/pages/mine/createCar`)
	}
</script>

<style>

</style>
